import 'package:flutter/material.dart';

class GSHeaderView extends StatelessWidget {
  final String title;
  final double height;
  final Color backgroundColor;
  final Color textColor;
  final double textSize;
  final Alignment alignment;
  final EdgeInsetsGeometry padding;
  GSHeaderView(
    this.title, {
    Key key,
    this.alignment,
    this.padding,
    this.backgroundColor,
    this.textColor,
    this.height = 50,
    this.textSize,
  }) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return Container(
      padding: padding ?? EdgeInsets.symmetric(horizontal: 15),
      color: backgroundColor ?? Colors.transparent,
      alignment: alignment ?? Alignment.centerLeft,
      height: height,
      child: Text(
        title,
        style: TextStyle(
          color: textColor ?? Color(0xFF333333),
          fontSize: textSize ?? 18,
        ),
      ),
    );
  }
}
